package com.example.book_libapp;

import android.app.Activity;

public class MainActivitys extends Activity {

	private boolean hasStarted = false;
	private boolean mSmurfActivityOpened = false;

	@Override
	public void onPause() {
		super.onPause();

		// // Avoid pause notifications in destroy path.
		// if (!isFinishing() && (getApplication() instanceof SmurfApplication))
		// ((SmurfApplication) getApplication()).onActivityPause(this);
		// }
		//
		// @Override
		// public void onResume() {
		// super.onResume();
		//
		// // Avoid resume notifications in startup path.
		// if (hasStarted && (getApplication() instanceof SmurfApplication)) {
		// ((SmurfApplication) getApplication()).onActivityResume(this);
		// mSmurfActivityOpened = false;
		// } else {
		// hasStarted = true;
		// }
		// }
		//
		// @Override
		// public void startActivity(Intent intent) {
		// checkIfSmurfActivity(intent);
		// super.startActivity(intent);
		// }
		//
		// @Override
		// public void startActivityForResult(Intent intent, int request) {
		// checkIfSmurfActivity(intent);
		// super.startActivityForResult(intent, request);
		// }
		//
		// private void checkIfSmurfActivity(Intent intent) {
		// // Whenever we call our own activity, the component and it's package
		// name is set.
		// // If we call an activity from another package, or an open intent
		// (leaving android to resolve)
		// // component has a different package name or it is null.
		// ComponentName component = intent.getComponent();
		// mSmurfActivityOpened = false;
		// if (component != null &&
		// component.getPackageName() != null &&
		// component.getPackageName().equals(_appliction's_package_name_)) {
		// mSmurfActivityOpened = true;
		// }
		// }
		//
		// public boolean isSmurfActivityOpened() {
		// return mSmurfActivityOpened;
		// }
		//
		// public boolean isApplicationInBackground() {
		// return ((SmurfApplication)
		// getApplication()).isApplicationInBackground();
	}

}
